import Vue from 'vue'
import getDeviceInfo from '../common/deviceInfo'
Vue.directive('inputDelete', {
    inserted: function (el, bind) {
        if (getDeviceInfo().isIOS) {
            el.addEventListener('keydown', (e) => {
                if (e.keyCode === 8) {
                    window.requestAnimationFrame(() => {
                    })
                }
            })
        }
    }
})